package org.egomsl.mw.compaction;

import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.egomsl.mw.region.FileMeta;

import java.io.IOException;
import java.util.List;

public abstract class CompactionPolicy {
    protected FileSystem fs;
    protected Path regionDir;

    public CompactionPolicy(FileSystem fs, Path regionDir) {
        this.fs = fs;
        this.regionDir = regionDir;
    }

    abstract List<FileMeta> getFilesForCompaction() throws IOException;
}
